package com.blb.ioc.demo1;

public class ComputerTest {

    public static void main(String[] args) {
        // 创建电脑对象
        Computer computer = new Computer();
        // 创建属性
        IntelCput intelCput = new IntelCput();
        KingstonMemory kingstonMemory = new KingstonMemory();
        computer.setBrand("华为");
        computer.setCpu(intelCput);
        computer.setMemory(kingstonMemory);
        // 启动
        computer.start();
    }
}
